<template>
  <div class="home">
    <div class="search-for">
      <el-input v-model="input" placeholder="请输入内容"></el-input>
      <el-button type="primary" class="search">搜索</el-button>
    </div>
    <div class="content-list">
      <div class="list" @click="goLuckDetalis">
        <div class="list-name">文件名称</div>
        <div class="list-icon">
            <div class="icon"></div>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  inject: ['list'],
  name: 'HomeView',
  data () {
    return {

    }
  },
  methods: {
    goLuckDetalis () {
      this.list.clickLuck('luckysheetListDetalis')
    }
  }
}
</script>
<style scoped lang="less">
.home{
  width: 100%;
  height: 90vh;
  padding: 20px;
  background-color:#fdfbee;
  font-family: "Baloo", cursive;
  color: #5f3d1e;
  .search-for{
    width: 300px;
    margin-bottom: 20px;
    display: flex;
    .search{
      margin-left: 20px;
    }
  }
  .content-list{
    width: 100%;
    height: calc(100%-20px);
    display: flex;
    flex-wrap: wrap;

    .list{
      z-index: 1;
      position: relative;
      min-width: 200px;
      min-height: 200px;
      padding: 15px;
      background: white;
      border: 1px solid #f0e0d1;
      border-radius: 20px;
      .list-name{
        font-size: 25px;
        font-family: '宋体';
      }
      .list-icon{
        width: 100%;
        height: calc(100%-30px);
        margin-top: 10px;
        .icon{
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}

</style>
